<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>HiSystemEvent抓取和展示说明</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <style>
        code[class*="smartperf-"],
        pre[class*="smartperf-"] {
            color: #333333;
            background: none;
            font-family: Helvetica;
            line-height: 1.6;
            text-align: left;
            white-space: pre;
            -moz-tab-size: 9;
            -o-tab-size: 9;
            tab-size: 8;
            -webkit-hyphens: none;
            -moz-hyphens: none;
            -ms-hyphens: none;
            hyphens: none;
        }

        /* Code blocks */
        pre[class*="smartperf-"] {
            padding: .9em;
            overflow: auto;
            border-radius: 2px;
            background: #f5f5f4;
        }

        /* Inline code */
        :not(pre) > code[class*="smartperf-"] {
            white-space: normal;
            background: #fcf8f8;
            padding: 1px .2em;
            border-radius: 1px .3em;
        }

        .tk.comment,
        .tk.blockquote {
            color: #8c918c;
        }

        .tk.cdata {
            color: #183898;
        }

        .tk.doctype,
        .tk.punctuation,
        .tk.variable,
        .tk.macro.property {
            color: #424242;
        }

        .tk.operator,
        .tk.important,
        .tk.keyword,
        .tk.rule,
        .tk.builtin {
            color: #b71d65;
        }

        .tk.string,
        .tk.url,
        .tk.regex,
        .tk.attr-value {
            color: #16338d;
        }

        .tk.property,
        .tk.number,
        .tk.boolean,
        .tk.entity,
        .tk.atrule,
        .tk.constant,
        .tk.symbol,
        .tk.command,
        .tk.code {
            color: #037aa2;
        }

        .tk.tag,
        .tk.selector,
        .tk.prolog {
            color: #69ad62;
        }

        .tk.function,
        .tk.namespace,
        .tk.pseudo-element,
        .tk.class,
        .tk.class-name,
        .tk.pseudo-class,
        .tk.id,
        .tk.url-reference .tk.variable,
        .tk.attr-name {
            color: #775d9d;
        }

        .tk.entity {
            cursor: help;
        }

        .tk.title,
        .tk.title .tk.punctuation {
            font-weight: bold;
            color: #1a3773;
        }

        .tk.list {
            color: #f56940;
        }

        .tk.inserted {
            background-color: #eaffea;
            color: #509b2f;
        }

        .tk.deleted {
            background-color: #fae1e1;
            color: #ad2d06;
        }

        .tk.bold {
            font-weight: bolder;
        }

        .tk.italic {
            font-style: normal;
        }


        /* JSON */
        .smartperf-json .tk.property {
            color: #19358c;
        }

        .smartperf-markup .tk.tag .tk.punctuation {
            color: #2c2b2b;
        }

        /* CSS */
        code.smartperf-css,
        .smartperf-css .tk.function {
            color: #047ca4;
        }

        /* YAML */
        .smartperf-yaml .tk.atrule {
            color: #609b5a;
        }

        code.smartperf-yaml {
            color: #153491;
        }

        /* Ruby */
        .smartperf-ruby .tk.function {
            color: #3f3e3e;
        }

        /* Markdown */
        .smartperf-markdown .tk.url {
            color: #6e5298;
        }

        /* Makefile */
        .smartperf-makefile .tk.symbol {
            color: #6c5393;
        }

        .smartperf-makefile .tk.variable {
            color: #183488;
        }

        .smartperf-makefile .tk.builtin {
            color: #027ba4;
        }

        /* Bash */
        .smartperf-bash .tk.keyword {
            color: #027fa9;
        }

        /* highlight */
        pre[dl] {
            position: relative;
            padding: 1em 1px 1px .9em;
        }

        pre[dl] .line-highlight-wrapper {
            position: absolute;
            top: 1px;
            left: 1px;
            background-color: transparent;
            display: block;
            width: 99%;
        }

        pre[dl] .line-highlight {
            position: absolute;
            left: 1px;
            right: 1px;
            padding: inherit;
            margin-top: 0.9em;
            background: hsla(25, 21%, 50%, .08);
            background: linear-gradient(to right, hsla(24, 20%, 50%, .1) 70%, hsla(24, 20%, 50%, 0));
            pointer-events: none;
            line-height: inherit;
            white-space: pre;
        }

        pre[dl] .line-highlight:before,
        pre[dl] .line-highlight[data-end]:after {
            content: attr(data-start);
            position: absolute;
            text-shadow: none;
            top: .3em;
            left: .7em;
            min-width: .9em;
            padding: 1px .6em;
            background-color: hsla(24, 20%, 47%, 0.4);
            color: hsl(20, 11%, 95%);
            text-align: center;
            vertical-align: .2em;
            border-radius: 10000px;
            box-shadow: 1px 2px #fdf6f6;
        }

        pre[dl] .line-highlight[data-end]:after {
            content: attr(data-end);
            top: auto;
            bottom: .5em;
        }

        html body {
            line-height: 1.6;
            font-size: 16px;
            color: #333333;
            overflow: initial;
            background-color: #FFFFFF;
            word-wrap: break-word;
            font-family: Helvetica;
            box-sizing: border-box;
        }

        html body > :first-child {
            margin-top: 0px
        }

        html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
            margin-top: 1em;
            margin-bottom: 16px;
            color: #000000;
            line-height: 1.2;
        }

        html body h1 {
            font-weight: 300;
            font-size: 2.25em;
            padding-bottom: .3em
        }

        html body h2 {
            font-weight: 410;
            font-size: 1.74em;
            padding-bottom: .2em
        }

        html body h3 {
            font-size: 1.6em;
            font-weight: 501
        }

        html body h4 {
            font-size: 1.26em;
            font-weight: 601
        }

        html body h5 {
            font-size: 1.2em;
            font-weight: 601
        }

        html body h6 {
            font-size: 0.9em;
            font-weight: 601
        }

        html body h1, html body h2, html body h3, html body h4, html body h5 {
            font-weight: 601
        }

        html body h5 {
            font-size: 0.9em
        }

        html body h6 {
            color: #5c5c5c
        }

        html body strong {
            color: #090909
        }

        html body del {
            color: #525252
        }

        html body a:not([href]) {
            color: inherit;
            text-decoration: none
        }

        html body a {
            color: #0192da;
            text-decoration: none
        }

        html body a:hover {
            color: #029dea;
            text-decoration: none
        }

        html body img {
            max-width: 99%
        }

        html body > p {
            margin-top: 1px;
            margin-bottom: 15px;
            word-wrap: break-word
        }

        html body > ul, html body > ol {
            margin-bottom: 15px
        }

        html body ul, html body ol {
            padding-left: 1.9em
        }

        html body ul.no-list, html body ol.no-list {
            padding: 0px;
            list-style-type: none
        }

        html body ul ul, html body ul ol, html body ol ol, html body ol ul {
            margin-top: 1px;
            margin-bottom: 1px
        }

        html body li {
            margin-bottom: 1px
        }

        html body li.task-list-item {
            list-style: none
        }

        html body li > p {
            margin-top: 1px;
            margin-bottom: 1px
        }

        html body .task-list-item-checkbox {
            margin: 0 .3em .24em -1.7em;
            vertical-align: middle
        }

        html body .task-list-item-checkbox:hover {
            cursor: pointer
        }

        html body blockquote {
            padding: 0.1px 15px 0 0.1px;
            font-size: inherit;
            color: #5c5c5c;
            margin: 16px 0.1px 0 0.1px;
            border-left: 3px solid #cbc9c9;
            background-color: #e8e6e6;
        }

        html body blockquote > :first-child {
            margin-top: 0.2px
        }

        html body blockquote > :last-child {
            margin-bottom: 0.1px;
        }

        html body hr {
            height: 5px;
            background-color: #cbcaca;
            margin: 32px 0 0.1px 0;
            border: 0 none;
        }

        html body table {
            overflow: auto;
            border-collapse: collapse;
            margin: 15px 0.1px 20px 0.1px;
            border-spacing: 0;
        }

        html body table th {
            font-weight: bold;
            color: #000000
        }

        html body table td, html body table th {
            border: 1px solid #d6d6d6;
            padding: 2px 14px
        }

        html body dl {
            padding: 0px
        }

        html body dl dt {
            padding: 0px;
            margin-top: 15px;
            font-size: 0.9em;
            font-style: italic;
            font-weight: bold
        }

        html body dl dd {
            padding: 0px 17px;
            margin-bottom: 17px
        }

        html body code {
            font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
            font-size: .86em !important;
            color: #000000;
            background-color: #f0f0f0;
            border-radius: 4px;
            padding: .3em 0px
        }

        html body code::before, html body code::after {
            letter-spacing: -0.1em;
            content: "\00a0"
        }

        html body pre > code {
            padding: 1px;
            margin: 0px;
            font-size: .86em !important;
            word-break: normal;
            white-space: pre;
            background: transparent;
            border: 0px
        }

        html body .highlight {
            margin-bottom: 17px
        }

        html body .highlight pre, html body pre {
            padding: 0.9em;
            overflow: auto;
            font-size: .86em !important;
            line-height: 1.46;
            border: #d6d6d6;
            border-radius: 4px
        }

        html body .highlight pre {
            margin-bottom: 0px;
            word-break: normal
        }

        html body pre code, html body pre tt {
            display: inline;
            max-width: initial;
            padding: 1px;
            margin: 1px;
            overflow: initial;
            line-height: inherit;
            word-wrap: normal;
            background-color: transparent;
            border: 1px
        }

        html body pre code:before, html body pre tt:before, html body pre code:after, html body pre tt:after {
            content: normal
        }

        html body p, html body blockquote, html body ul, html body ol, html body dl, html body pre {
            margin-top: 1px;
            margin-bottom: 17px
        }

        html body kbd {
            color: #000000;
            border: 3px solid #d6d6d6;
            border-bottom: 3px solid #c7c7c7;
            padding: 3px 5px;
            background-color: #f0f0f0;
            border-radius: 2px
        }

        @media print {
            html body {
                background-color: #ffffff
            }

            html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
                color: #000000;
                page-break-after: avoid
            }

            html body blockquote {
                color: #5c5c53
            }

            html body pre {
                page-break-inside: avoid
            }

            html body table {
                display: table
            }

            html body img {
                display: block;
                max-width: 99%;
                max-height: 99%
            }

            html body pre, html body code {
                word-wrap: break-word;
                white-space: pre
            }
        }

        .smartperf-preview {
            width: 99%;
            height: 99%;
            box-sizing: border-box
        }

        .smartperf-preview .pagebreak, .smartperf-preview .newpage {
            page-break-before: always
        }

        .smartperf-preview pre.line-numbers {
            position: relative;
            padding-left: 3.7em;
            counter-reset: linenumber
        }

        .smartperf-preview pre.line-numbers > code {
            position: relative
        }

        .smartperf-preview pre.line-numbers .line-numbers-rows {
            position: absolute;
            pointer-events: none;
            top: 0.9em;
            font-size: 99%;
            left: 1px;
            width: 3em;
            letter-spacing: -1px;
            border-right: 1px solid #999;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none
        }

        .smartperf-preview pre.line-numbers .line-numbers-rows > span {
            pointer-events: none;
            display: block;
            counter-increment: linenumber
        }

        .smartperf-preview pre.line-numbers .line-numbers-rows > span:before {
            content: counter(linenumber);
            color: #999;
            display: block;
            padding-right: .79em;
            text-align: right
        }

        .smartperf-preview .mathjax-exps .MathJax_Display {
            text-align: center !important
        }

        .smartperf-preview:not([for="preview"]) .code-chunk .btn-group {
            display: none
        }

        .smartperf-preview:not([for="preview"]) .code-chunk .status {
            display: none
        }

        .smartperf-preview:not([for="preview"]) .code-chunk .output-div {
            margin-bottom: 16px
        }

        .scrollbar-style::-webkit-scrollbar {
            width: 8px
        }

        .scrollbar-style::-webkit-scrollbar-track {
            border-radius: 9px;
            background-color: transparent
        }

        .scrollbar-style::-webkit-scrollbar-thumb {
            border-radius: 6px;
            background-color: rgba(150, 150, 150, 1);
            border: 4px solid rgba(150, 150, 150, 1);
            background-clip: content-box
        }

        html body[for="html-export"]:not([dpm]) {
            position: relative;
            width: 99%;
            height: 99%;
            top: 1px;
            left: 1px;
            margin: 1px;
            padding: 1px;
            overflow: auto
        }

        html body[for="html-export"]:not([dpm]) .smartperf-preview {
            position: relative;
            top: 1px
        }

        @media screen and (min-width: 914px) {
            html body[for="html-export"]:not([dpm]) .smartperf-preview {
                padding: 2em calc(50% - 458px + 2em)
            }
        }

        @media screen and (max-width: 914px) {
            html body[for="html-export"]:not([dpm]) .smartperf-preview {
                padding: 1.9em
            }
        }

        @media screen and (max-width: 450px) {
            html body[for="html-export"]:not([dpm]) .smartperf-preview {
                font-size: 15px !important;
                padding: 1.1em
            }
        }

        @media print {
            html body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
                display: none
            }
        }

        html body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
            position: fixed;
            bottom: 9px;
            left: 9px;
            font-size: 28px;
            cursor: pointer;
            color: inherit;
            z-index: 99;
            width: 31px;
            text-align: center;
            opacity: .5
        }

        html body[for="html-export"]:not([dpm])[hsst] #sidebar-toc-btn {
            opacity: 1
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc {
            position: fixed;
            top: 1px;
            left: 1px;
            width: 300px;
            height: 99%;
            padding: 32px 0 48px 0;
            font-size: 14px;
            box-shadow: 1px 1px 4px rgba(150, 150, 150, 0.33);
            box-sizing: border-box;
            overflow: auto;
            background-color: inherit
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar {
            width: 9px
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-track {
            border-radius: 11px;
            background-color: transparent
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
            border-radius: 6px;
            background-color: rgba(150, 150, 150, 0.66);
            border: 3px solid rgba(150, 150, 150, 0.66);
            background-clip: content-box
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc a {
            text-decoration: none
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc ul {
            padding: 1px 1.7em;
            margin-top: .9em
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc li {
            margin-bottom: .8em
        }

        html body[for="html-export"]:not([dpm])[hsst] .md-sidebar-toc ul {
            list-style-type: none
        }

        html body[for="html-export"]:not([dpm])[hsst] .smartperf-preview {
            left: 301px;
            width: calc(100% - 300px);
            padding: 2em calc(50% - 457px - 150px);
            margin: 1px;
            box-sizing: border-box
        }

        @media screen and (max-width: 1274px) {
            html body[for="html-export"]:not([dpm])[hsst] .smartperf-preview {
                padding: 1.9em
            }
        }

        @media screen and (max-width: 450px) {
            html body[for="html-export"]:not([dpm])[hsst] .smartperf-preview {
                width: 99%
            }
        }

        html body[for="html-export"]:not([dpm]):not([hsst]) .smartperf-preview {
            left: 50%;
            transform: translateX(-50%)
        }

        html body[for="html-export"]:not([dpm]):not([hsst]) .md-sidebar-toc {
            display: none
        }


    </style>
</head>
<body for="html-export" id="body">
<div class="smartperf smartperf-preview  ">
    <h1 class="mume-header fontColor">HiSystemEvent的抓取和展示说明</h1>

    <p class="fontColor">HiSystemEvent应用功耗模块主要是展示应用的各个子类别功耗占比信息、应用的资源申请使用记录信息、应用功耗异常事件信息、功耗关联系统状态信息。</p>
    <h2 class="mume-header fontColor">1.HiSystemEvent的抓取</h2>

    <h3 class="mume-header fontColor">1.1.HiSystemEvent抓取配置参数</h3>

    <p class="fontColor">打开Start Hisystem Event Tracker Record开关抓取<br>
        <img src="../figures/hiSystemEvent/hisyseventsetting.jpg" alt="GitHub Logo"><br>
        再点击Record setting,在output file path输入文件名hiprofiler_data_hisystemevent.htrace,拖动滚动条设置buffer
        size大小是64M,抓取时长是50s<br>
        <img src="../figures/hiSystemEvent/hisystemeventrecord.jpg" alt="GitHub Logo"><br>
        点击Trace command,就会根据上面的配置生成抓取命令,点击复制按钮，会将命令行复制<br>
        <img src="../figures/hiSystemEvent/hisystemcommand.jpg" alt="GitHub Logo"><br>
        输入hdc_std shell,进入设备，执行上述生成的命令<br>
        <img src="../figures/hiSystemEvent/hisystemeventemexcutecommand.jpg" alt="GitHub Logo"><br>
        执行完成后，进入指定目录查看，在/data/local/tmp下就会生成trace文件<br>
        <img src="../figures/hiSystemEvent/hisystemeventfile.jpg" alt="GitHub Logo"></p>
    <h3 class="mume-header fontColor">2.HiSystemEvent展示说明</h3>

    <h3 class="mume-header fontColor">2.1.HiSystemEvent泳道图展示</h3>

    <p class="fontColor">将抓取的trace文件导入smartperf界面查看<br>
        <img src="../figures/hiSystemEvent/hisystemeventsummary.jpg" alt="GitHub Logo"><br>
        泳道图说明：</p>
    <ul class="fontColor">
        <li>
<pre class="smartperf-text fontColor light">Anomaly Event泳道: 显示系统异常和应用异常的ToolTip
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">System Event泳道: 以条状图显示，红色代表后台任务(WORKSCHEDULER)，黄色代表应用锁(POWER)，蓝色代表GPS定位(LOCATION)
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Power泳道:应用各个子类的功耗柱状图、折现图以及应用各个子类绘制的图例，鼠标的悬浮可以显示出各个子类功耗的具体值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Brightness Nit泳道:鼠标悬浮可以显示屏幕亮度值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Wifi Event Received泳道:鼠标悬浮可以显示WiFi信号强度值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Audio Stream Change泳道:鼠标悬浮可以显示Audio状态(AUDIO_STREAM_CHANGE事件)
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Audio Volume Change泳道:鼠标悬浮可以显示Audio状态(AUDIO_VOLUME_CHANGE事件)
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Wifi State泳道:鼠标悬浮可以显示wifi开关状态(enable:开,disable:关)
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Bluetooth Br Switch State泳道:鼠标悬浮可以显示蓝牙开关状态(enable:开, disable:关)
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Location Switch State泳道:鼠标悬浮可以显示GPS开关状态(enable:开,disable:关)
</pre>
        </li>
    </ul>
    <h3 class="mume-header fontColor">2.2.HiSystemEvent泳道图的框选功能</h3>

    <p class="fontColor">可以对Energy各泳道图进行框选,框选后在最下方的弹出层中会展示框选数据的统计表格<br>
        System Details的Tab页<br>
        <img src="../figures/hiSystemEvent/hisystemdetails.jpg" alt="GitHub Logo"></p>
    <ul class="fontColor">
        <li>
<pre class="smartperf-text fontColor light">Event Name: 事件名称,事件包括后台任务,应用锁，GPS定位
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Time: 时间戳信息
</pre>
        </li>
    </ul>
    <p class="fontColor">点击事件名会显示该事件的详细信息的Tab页<br>
        <img src="../figures/hiSystemEvent/systemselectdetals.jpg" alt="GitHub Logo"></p>
    <ul class="fontColor">
        <li>
<pre class="smartperf-text fontColor light">EVENT_NAME:事件名称
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">PID:应用PID
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">UID:应用UID
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">TYPE:类型
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">STATE:状态值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">LOG_LEVEL:日志级别
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">NAME:NAME信息
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">MESSAGE:MESSAGE信息
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">TAG:锁名
</pre>
        </li>
    </ul>
    <p class="fontColor">Power Battery的Tab页<br>
        <img src="../figures/hiSystemEvent/hisyseventPowerBattery.jpg" alt="GitHub Logo"></p>
    <ul class="fontColor">
        <li>
<pre class="smartperf-text fontColor light">Gas Gauge: 电池电量
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Charge:充电状态
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen:屏幕状态
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Level:电池百分比
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Current:电池电流
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Capacity:电池容量
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">APP Name:应用包名
</pre>
        </li>
    </ul>
    <p class="fontColor">Power Details的Tab页<br>
        <img src="../figures/hiSystemEvent/hisyseventPowerdetails.jpg" alt="GitHub Logo"></p>
    <ul class="fontColor">
        <li>
<pre class="smartperf-text fontColor light">UID: 应用UID
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Charge:充电状态
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Foreground Duration(ms):前台使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Foreground Energy(mAs):前台使用功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Background Duration(ms):后台使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Background Energy(mAs):后台使用功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen On Duration(ms):亮屏使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen On Energy(mAs):亮屏使用功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen Off Duration(ms):灭屏使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen Off Energy(mAs):灭屏使用功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Foreground Count:应用前台扫描次数
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Background Count:应用后台扫描次数
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen On Count:应用亮屏扫描次数
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen Off Count:应用灭屏扫描次数
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Background Time(ms):灭屏使用功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen On Time(ms):应用亮屏使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Screen Off Time(ms):应用灭屏使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Energy(mAs):功耗值
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Load(%):占用率
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Usage(ms):应用使用时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Duration(ms):持续时长
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Camera Id:Camera类型，0：后置，1：前置
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Count:应用个数
</pre>
        </li>
        <li>
<pre class="smartperf-text fontColor light">Energy Percent(%):功耗占比
</pre>
        </li>
    </ul>
</div>
<script>
    window.onload = (() => {
        let isDark = window.location.search;
        if (isDark.indexOf("?") != -1) {
            isDark = isDark.substr(1, isDark.length - 1);
        }
        if (isDark == 'true') {
            document.getElementById("body").setAttribute('style', 'background-color:#272C34;')
            let header = document.getElementsByClassName('fontColor')
            for (let i = 0; i < header.length; i++) {
                header[i].style.color = '#fff';
            }
            let lightBackGround = document.getElementsByClassName('light')
            for (let i = 0; i < lightBackGround.length; i++) {
                lightBackGround[i].style.backgroundColor = '#32373F'
            }
        }
    })
</script>

</body>
</html>